package com.yulan.xunfei;

import java.util.Scanner;

public class test4 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while(in.hasNext()){
            String str = in.nextLine();
            System.out.println(getNumber(str));
        }
    }

    public static String getNumber(String str){
        StringBuilder strb = new StringBuilder();
        boolean isActive = false;
        if(str.charAt(0) == '-') isActive = true;
        for(char c : str.toCharArray()){
            if(c >= '0' && c<='9')
                strb.append(c);
        }

        return isActive ? "-" + strb.toString() : strb.toString();
    }
}
